#include "TestSuite.h"

namespace AllTing
{

namespace Test
{

TestSuite::~TestSuite()
{
}

Bool TestSuite::Run()
{
	if(!SetUp())
		return False;

	TestIterator itStart = vTests_.begin();
	TestIterator itEnd = vTests_.end();

	for( ; itStart!=itEnd; ++itStart)
	{
		Bool bStopOnFailed = (*itStart)->StopOnFailed();

		if(False == (*itStart)->Run() && bStopOnFailed)
			break;
	}

	return TearDown();
}

}	// namespace Test

}	// namespace AllTing